package br.com.android;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;

public class Login extends Activity  {
	
	private Button btConectar, btCriar;
	private EditText edLogin, edSenha;
	
	public void onCreate(Bundle savedStanceState){
		super.onCreate(savedStanceState);
		setContentView(R.layout.login);
		
		

        edLogin = (EditText) findViewById(R.login.edLogin);
        edSenha = (EditText) findViewById(R.login.edSenha);
        
        
        btConectar = (Button) findViewById(R.login.btConectar);
        btCriar = (Button) findViewById(R.login.btCriarConta);
        
        btConectar.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent i = new Intent(Login.this, Principal.class);
				startActivity(i);
				
				
			}
		});
      
        btCriar.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent i = new Intent(Login.this, Cadastro.class);
				startActivity(i);
			}
		});
       
        
       
    }
		
		
	}
	
	


